
package com.jf.cloud.search.feign;

import com.jf.cloud.api.feign.SearchOrderRefundFeignClient;
import com.jf.cloud.api.vo.EsPageVO;
import com.jf.cloud.common.order.dto.OrderRefundSearchDTO;
import com.jf.cloud.common.order.vo.EsOrderRefundVO;
import com.jf.cloud.common.response.ServerResponseEntity;
import com.jf.cloud.search.manager.OrderRefundSearchManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.v3.oas.annotations.Hidden;

/**
 * 订单搜索feign连接
 * @author zz
 * @date 2020/12/07
 */
@RestController
@Hidden
public class SearchOrderRefundFeignController implements SearchOrderRefundFeignClient {

    @Autowired
    private OrderRefundSearchManager orderRefundSearchManager;


    @Override
    public ServerResponseEntity<EsPageVO<EsOrderRefundVO>> pageOrderRefund(OrderRefundSearchDTO orderRefundSearchDTO) {
        return ServerResponseEntity.success(orderRefundSearchManager.pageSearchResult(orderRefundSearchDTO));
    }
}
